//所有api接口，统一管理
import requests from "./request";

//三级联动 /api/product/getBaseCategoryList get请求，无参数

//axios 请求返回结果是Promise对象
// export const reqCategoryList = () => {
//     return requests({
//         url: '/product/getBaseCategoryList',
//         method: 'get'})
// }
//axios请求简写
export const reqCategoryList = () => requests({url: '/product/getBaseCategoryList', method: 'get'})



//用mock数据时的导入
import mockRequests from './ajax';
//mock请求简写
export const reqGetBannerList = () => mockRequests({url: '/banner',method:'get'})